package com.education.wisdom.service.impl;

import com.education.wisdom.mapper.MsPaperQuestionMapper;
import com.education.wisdom.pojo.MsPaperQuestion;
import com.education.wisdom.pojo.PaperQuestion;
import com.education.wisdom.service.MsPaperQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MsPaperQuestionServiceImpl  implements MsPaperQuestionService {

    @Autowired
    private MsPaperQuestionMapper mapper;

    @Override
    public int insertPaperQuestion(MsPaperQuestion paperQuestion) {
        return mapper.insertPaperQuestion(paperQuestion);
    }

    @Override
    public String[] selectByQuestionids(Integer paperId) {
        return mapper.selectByQuestionids(paperId);
    }

    @Override
    public String[] selectByPaperIdAndType(Integer id, int i) {
        return mapper.selectByPaperIdAndType(id,i);
    }
}
